package com.steakliu.sun.buffer.disuptor;

/**
 * 功能说明：
 * <p>
 * Original @Author: steakliu-刘牌, 2023-02-09  16:38
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
public class DataEventPublisherFactory {

    private static volatile DataEventPublisher dataEventPublisher;

    public static  DataEventPublisher getInstance(){
        if (null == dataEventPublisher){
            synchronized (DataEventPublisherFactory.class){
                if (null == dataEventPublisher){
                    dataEventPublisher = new DataEventPublisher();
                }
            }
        }
        return dataEventPublisher;
    }
}
